<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div id="app">
    <div @click.capture="demo01()"></div>
</div>
    <script>
        new Vue({
            el:"#app",
            demo01(){
                alert("div的单击事件")
            },
            demo02(){
                alert("button的单击事件")
            }
        })
    </script>
</body>
</html>